import Http from '../http';


export const countJobsApi = function(data: any) {
    return Http.post('/hqApi/task/countJobs', data)
}

export const queryJobsApi = function(data: any) {
    return Http.post('/hqApi/task/queryJobs', data)
}

export const addJobsApi = function(data: any) {
    return Http.post('/hqApi/task/addJob', data)
}

export const updateJobApi = function(data: any) {
    return Http.post('/hqApi/task/updateJob', data)
}

export const deleteJobApi = function(data: any) {
    return Http.get('/hqApi/task/deleteJob', data)
}

export const loadApi = function(data: any) {
    return Http.get('/hqApi/task/load', data)
}

export const resumeJobApi = function(data: any) {
    return Http.get('/hqApi/task/resume', data)
}

export const stopJobApi = function(data: any) {
    return Http.get('/hqApi/task/stop', data)
}

export const unloadJobApi = function(data: any) {
    return Http.get('/hqApi/task/unload', data)
}

export const reloadJobApi = function(data: any) {
    return Http.get('/hqApi/task/reload', data)
}